-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Entity Analytics][9.0] Remove all legacy risk engine code and features #201810
Conversation
… when engine has been installed
/ci |
/ci |
/ci |
/ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this should be deleted:
Line 183 in da25d13
title: `ml_${stackByField}_risk_score_${extraOptions.spaceId}`, |
I also found some references inside the cypress folder:
kibana/x-pack/test/security_solution_cypress/cypress/tasks/risk_scores/indices.ts
Line 11 in da25d13
`ml_${riskScoreEntity}_risk_score_${spaceId}`; |
kibana/x-pack/test/security_solution_cypress/cypress/tasks/risk_scores/transforms.ts
Line 27 in da25d13
) => `ml_${riskScoreEntity}riskscore_pivot_transform_${spaceId}`; |
kibana/x-pack/test/security_solution_cypress/cypress/tasks/risk_scores/stored_scripts.ts
Line 13 in da25d13
`ml_${riskScoreEntity}riskscore_init_script_${spaceId}`; |
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I desk-tested, and everything looks good!
Thank you for deleting so much code! 🔥 🔥 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the Threat Hunting Investigations team
… into delete-legacy-risk-engine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for removing the unused code!
...ty_solution_cypress/cypress/e2e/entity_analytics/dashboards/enable_risk_score_redirect.cy.ts
Show resolved
Hide resolved
cy.get(ENABLE_HOST_RISK_SCORE_BUTTON).should('be.visible'); | ||
|
||
cy.get(ENABLE_USER_RISK_SCORE_BUTTON).should('be.visible'); | ||
it('shows enable risk button', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if we can invest time to try to unskip this spec file :)
}); | ||
|
||
after(() => { | ||
cy.task('esArchiverUnload', { archiveName: 'risk_users' }); | ||
}); | ||
|
||
describe('Custom query rule', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as before, it would be great to try to unskip the test :)
x-pack/test/security_solution_cypress/cypress/e2e/entity_analytics/host_details/risk_tab.cy.ts
Outdated
Show resolved
Hide resolved
x-pack/test/security_solution_cypress/cypress/e2e/entity_analytics/hosts/host_risk_tab.cy.ts
Outdated
Show resolved
Hide resolved
...ck/test/security_solution_cypress/cypress/e2e/entity_analytics/hosts/hosts_risk_column.cy.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DE changes LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing all the comments :)
This reverts commit 818cbdd.
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
cc @hop-dev |
Summary
Closes https://github.com/elastic/security-team/issues/11253
Breaking change proposal: https://github.com/elastic/dev/issues/2822
The host and user risk scoring modules or "legacy risk engine" as we often call it internally, has been superseded since v8.10.0 by the risk engine. We submitted a breaking change proposal for v9.0.0 to remove all support to this legacy approach which was approved.
In 8.18 users will be given a warning if they are still using the legacy risk engine and directed to upgrade, this is implemented in #202775.
Changes
Deletions
ml_risk_score*
indices